Smush\Core\Png2Jpg\Png2Jpg_Optimization C

Total Complexity 108
Dependencies 10
Dependents 5
Total lines 742
Lines of code 480
Logical lines of code 273
Comment lines 118
Methods 43
Properties 13

Methods 43

Method Rating Maintainability Complexity Lines of code
convert_media_item()
A
40 7 68
convert_size()
A
44 7 47
get_restore_file_path()
S
51 6 27
can_be_converted()
S
53 6 23
replace_url_in_content()
S
51 5 25
make_meta()
S
57 5 17
get_stats()
S
58 4 16
write_file_for_size()
S
52 3 27
get_optimized_sizes_count()
S
62 4 11
should_optimize()
S
65 4 10
get_size_meta()
S
65 4 9
restore()
S
55 2 20
replace_urls_in_content()
S
65 3 9
fetch_meta()
S
69 3 6
delete_files()
S
70 3 7
is_skipped()
S
72 2 6
save()
S
68 2 7
should_optimize_size()
S
66 2 9
skip_conversion()
S
72 2 6
reset()
S
74 2 5
get_size_stats()
S
71 2 6
add_error()
S
68 2 7
prepare_converted_png_files()
S
71 2 6
get_meta()
S
72 2 6
optimize()
S
71 2 6
relative_paths()
S
65 2 9
get_main_jpg_file_name()
S
64 2 9
get_size_jpg_file_name()
S
63 2 10
get_converted_png_files()
S
72 2 6
get_name()
S
79 1 3
get_errors()
S
82 1 3
can_restore()
S
81 1 3
copy_size()
S
64 1 10
set_converted_png_files()
S
81 1 3
get_sizes_to_convert()
S
81 1 3
delete_data()
S
76 1 4
get_key()
S
81 1 3
is_optimized()
S
80 1 3
prepare_size_stats()
S
73 1 5
should_reoptimize()
S
81 1 3
set_skip_convert()
S
80 1 3
prepare_skip_conversion()
S
75 1 4
__construct()
S
64 1 10